home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / usr / share / system-config-printer / installpackage.pyc (.txt) < prev    next >
Python Compiled Bytecode  |  2009-10-28  |  1KB  |  25 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. import os
  5. import glib
  6.  
  7. class PackageKit:
  8.     
  9.     def __init__(self):
  10.         for dir in os.environ.get('PATH', '').split(':'):
  11.             path = dir + os.path.sep + 'gpk-install-package-name'
  12.             if os.access(path, os.X_OK):
  13.                 self.gpk_install_package_name = path
  14.                 return None
  15.         
  16.         raise RuntimeError, 'No gpk-install-package-name program available'
  17.  
  18.     
  19.     def InstallPackageName(self, xid, timestamp, name):
  20.         glib.spawn_async([
  21.             self.gpk_install_package_name,
  22.             name])
  23.  
  24.  
  25.